cmake_minimum_required(VERSION 3.10)
project(ursax)

set(CMAKE_CXX_STANDARD 11)

set(URSAX_SOURCE_ROOT /root/ursax/src)
set(PROJECT_BINARY_DIR /root/ursax/sandbox/bin)

include_directories(contrib/stat-threads)
include_directories(contrib/hiredis)

add_executable(hello hello.cpp)

add_custom_target(ursax_chunkserver
        COMMAND make -C ${URSAX_SOURCE_ROOT}
        CLION_EXE_DIR=${PROJECT_BINARY_DIR}
)